import {Component, OnInit} from '@angular/core';

@Component({
    selector: 'app-product-structure-list',
    templateUrl: './product-structure-list.component.html',
    // styleUrls: ['./product-structure-list.component.less'],
})
export class ProductStructureListComponent implements OnInit {

    constructor() {
    }

    // 当前组件的数据
    currentComponentData = [
        {
            spareParts: '整机H型号',
            label: 'GC008',
            level: '0',
            code: 'ZZ20201029001',
            platformRecord: '1',
            platformUuid: 'LAM2-100-6',
            data: []
        },
        {
            spareParts: '包装箱',
            label: 'GC008',
            level: '0',
            code: 'ZZ20201029001',
            platformRecord: '1',
            platformUuid: 'LAM2-100-6',
            data: []
        },
        {
            spareParts: '机器',
            label: 'FC2008',
            level: '1',
            code: 'ZZ20201029008',
            platformRecord: '0',
            platformUuid: 'LAM2-100-9',
            data: []
        },
        {
            spareParts: '质保书',
            label: 'FC2008',
            level: '1',
            code: 'ZZ20201029009',
            platformRecord: '0',
            platformUuid: 'LAM2-100-10',
            data: []
        },
        {
            spareParts: '包装箱',
            label: 'GC008',
            level: '0',
            code: 'ZZ20201029001',
            platformRecord: '1',
            platformUuid: 'LAM2-100-6',
            data: []
        },
        {
            spareParts: '机器',
            label: 'FC2008',
            level: '1',
            code: 'ZZ20201029008',
            platformRecord: '0',
            platformUuid: 'LAM2-100-9',
            data: []
        },
        {
            spareParts: '包装箱',
            label: 'GC008',
            level: '0',
            code: 'ZZ20201029001',
            platformRecord: '1',
            platformUuid: 'LAM2-100-6',
            data: []
        },
        {
            spareParts: '机器',
            label: 'FC2008',
            level: '1',
            code: 'ZZ20201029008',
            platformRecord: '0',
            platformUuid: 'LAM2-100-9',
            data: []
        }
    ];

    ngOnInit() {
    }

    // 点击卡片
    return(data: any) {
        console.log('data = ', data);
    }
}
